DEFINES += QT_DEPRECATED_WARNINGS

QT += network


SOURCES += \
    $$PWD/SingleApp.cpp \
    $$PWD/systemtray/SystemTrayHelper.cpp \
    $$PWD/systemtray/SystemTrayInterface.cpp

HEADERS += \
    $$PWD/SingleApp.h \
    $$PWD/SystemMacro.h \
    $$PWD/systemtray/SystemTrayHelper.h \
    $$PWD/systemtray/SystemTrayInterface.h

win32: {
    QT += winextras
    LIBS += -lUser32 -lAdvapi32

    SOURCES += \
        $$PWD/WinAppHelper.cpp \
        $$PWD/systemtray/WinSystemTray.cpp \
        $$PWD/systemtray/CMsgTrayPos.cpp

    HEADERS += \
        $$PWD/WinAppHelper.h \
        $$PWD/systemtray/WinSystemTray.h \
        $$PWD/systemtray/CMsgTrayPos.h
}

macx: {
   SOURCES += \
        $$PWD/systemtray/UnixSystemTray.cpp \
        $$PWD/MacAppHelper.mm

    HEADERS += \
        $$PWD/systemtray/UnixSystemTray.h \
        $$PWD/MacAppHelper.h


    LIBS += \
        -framework CoreFoundation \
        -framework AppKit

    LIBS += -framework CoreFoundation -framework Carbon -lobjc
}

linux: {
    SOURCES += \
        $$PWD/systemtray/UnixSystemTray.cpp

    HEADERS += \
        $$PWD/systemtray/UnixSystemTray.h

}
